#!/bin/bash
#exit 0
#部署管理员界面
npm run build

today=$(date +"%Y/%m/%d")

path='dist/'
if [ ! -d $path ]; then
  echo "将备份目录不存在:$path" >> /tmp/upload_admin.log
  exit 0
fi

rsync -rutv $path  www.5fu8.com:/opt/www/soft
echo $today",备份成功" >> /tmp/upload_admin.log
exit 0
